﻿using System;

namespace ECommon.Wrap
{

    /// <summary>
    /// 带异常的返回结果
    /// </summary>
    public class ExResult : EResult
    {
        /// <summary>
        /// 异常
        /// </summary>
        public Exception Ex { get; set; } = null;
    }

    /// <summary>
    /// 带异常的返回结果
    /// </summary>
    /// <typeparam name="T">泛型类</typeparam>
    public class ExResult<T> : EResult<T>
    {
        /// <summary>
        /// 异常
        /// </summary>
        public Exception Ex { get; set; } = null;
    }
}
